package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-30
 */
@TableName("t_driver")
public class TDriver extends Model<TDriver> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 司机名称
     */
    @TableField("driver_name")
    private String driverName;
    /**
     * 身份证
     */
    @TableField("car_no")
    private String carNo;
    @TableField("driver_card")
    private String driverCard;
    @TableField("dept_id")
    private Integer deptId;
    @TableField("dot_id")
    private Integer dotId;
    @TableField("create_user")
    private Integer createUser;
    @TableField("create_time")
    private Date createTime;

    private String phone;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getDriverCard() {
        return driverCard;
    }

    public void setDriverCard(String driverCard) {
        this.driverCard = driverCard;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "TDriver{" +
        "id=" + id +
        ", driverName=" + driverName +
        ", carNo=" + carNo +
        ", driverCard=" + driverCard +
        ", deptId=" + deptId +
        ", dotId=" + dotId +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        "}";
    }
}
